<template>
    <ContextChild @sonfun="clickemitsfun" attr="attr-7890" hello="hello" msg="leslie-1234" age="24">
        <template #under-button>子组件的 under-button slot</template>
        <template #under-test>子组件的 under-testslot</template>
    </ContextChild>
    <div>son子组件emit传输的值是 :{{ sonEmit }}</div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import ContextChild from './Context-Child.vue'
let sonEmit = ref('')
const clickemitsfun = (value: string) => {
    sonEmit.value = value
}
</script>

<style scoped></style>
